<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ext" value=".html" scope="application" />
<html>
<head>
<link rel="stylesheet" href="/content/style.css" type="text/css" />
<style type="text/css">
dt {
    font-weight: bold;
}
</style>
<script type="text/javascript">
function goHome() {
  var seconds = parseInt(document.getElementById('seconds').innerHTML);
  setInterval(
    function(){
      if (seconds <= 1) window.location = '/';
      else document.getElementById('seconds').innerHTML = --seconds;
    }, 1000);
}
</script>
</head>
<body class="mid" onload="goHome()">
    <fieldset>
        <legend>Exception encountered</legend>
        <dl>
            <dt>Status Code</dt>
            <dd>${requestScope["javax.servlet.error.status_code"]}</dd>
            <dt>Status Message</dt>
            <dd>${requestScope["javax.servlet.error.message"]}</dd>
            <dt>Request URI</dt>
            <dd>${requestScope["javax.servlet.error.request_uri"]}</dd>
            <dt>Servlet Name</dt>
            <dd>${requestScope["javax.servlet.error.servlet_name"]}</dd>
            <dt>Exception</dt>
            <dd>${requestScope["javax.servlet.error.exception"]}</dd>
            <dt>Exception Type</dt>
            <dd>${requestScope["javax.servlet.error.exception_type"]}</dd>
        </dl>
        <p>Redirecting to <a href="/">home page</a> after <span id="seconds">10</span> seconds.</p>
    </fieldset>
</body>
</html>
